/**
 * 删除操作符
 * 
 * 反射api Reflect.deleteProperty()
 * 
 * 1.返回值
 * 对象
 * 
 * 2.触发拦截操作
 * delete proxy.foo
 * delete proxy['foo']
 * Reflect.deleteProperty(proxy,'foo')
 * 
 */

 const proxy = new Proxy({},{
    deleteProperty(target,property){
        console.log('deleteProperty()');
        return Reflect.deleteProperty(...arguments)
    }
});
delete proxy.foo//deleteProperty()
delete proxy['foo']//deleteProperty()
Reflect.deleteProperty(proxy,'foo')//deleteProperty()
console.log(Reflect.deleteProperty(proxy,'foo'));//true
